package com.es.www.second;

import java.math.BigDecimal;

import com.es.www.first.PurchaseRequest;

/**
 * @Created by michangtao
 * @Date 2022/5/25 11:20
 * @Description
 */
public class DefaultHeadHandler extends AbstractHandler{

    public DefaultHeadHandler() {
        super(DefaultHeadHandler.class.getName());
    }

    @Override
    public void process() {
        System.out.println("我是头节点，负责初始化数据");
        //设置请求对象
        PurchaseRequest request = new PurchaseRequest(BigDecimal.valueOf(60000), "课桌");
        processMap.put(MAP_KEY, request);
    }
}
